#ifndef CONTENT_H_
#define CONTENT_H_

#include "../../util/Def.h"
#include "Genre.h"

#include <string>
#include <ctime>

class Content {
private:
	int id;
	std::string name;
	Genre genre;
	time_t begin;
	time_t duration;
public:
	Content() :
		id(NOT_FOUND) {
	}

	Content(int id, std::string name, const Genre& genre, time_t begin,
			time_t duration) :
		id(id), name(name), genre(genre), begin(begin), duration(duration) {
	}

	inline int getId() const {
		return id;
	}

	inline std::string getName() const {
		return name;
	}

	inline Genre getGenre() const {
		return genre;
	}

	inline time_t getBegin() const {
		return begin;
	}

	inline time_t getDuration() const {
		return duration;
	}

	void setId(int id) {
		this->id = id;
	}

	void setName(std::string name) {
		this->name = name;
	}

	void setGenre(const Genre& genre) {
		this->genre = genre;
	}

	void setBegin(time_t begin) {
		this->begin = begin;
	}

	void setDuration(time_t duration) {
		this->duration = duration;
	}

};

#endif /* CONTENT_H_ */
